package com.xiao.hao.convertor;


import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import java.util.List;
import com.xiao.hao.config.LocalDateTimeConfig;
import com.xiao.hao.req.XhNutritionalPairingInsertReq;
import com.xiao.hao.req.XhNutritionalPairingQueryPageReq;
import com.xiao.hao.req.XhNutritionalPairingUpdateReq;
import com.xiao.hao.resp.XhNutritionalPairingResp;
import com.xiao.hao.entity.XhNutritionalPairing;

/**
*
*
* @Description 营养搭配表 类型转换
* @Author xiaohao
* @Date 2025-03-01 18:30:25
*/
@Mapper(uses = {LocalDateTimeConfig.class}, componentModel = "spring")
public interface XhNutritionalPairingConvertor {

    XhNutritionalPairingConvertor INSTANCE = Mappers.getMapper(XhNutritionalPairingConvertor.class);

    /**
    * 功能描述:
    *
    * @param req
    * @return com.xiao.hao.entity.XhNutritionalPairing
    * @author xiaohao
    * @date 2025-03-01 18:30:25
    */
    XhNutritionalPairing reqToEntity(XhNutritionalPairingInsertReq req);

    /**
    * 功能描述:
    *
    * @param req
    * @return com.xiao.hao.entity.XhNutritionalPairing
    * @author xiaohao
    * @date 2025-03-01 18:30:25
    */
    XhNutritionalPairing reqToEntity(XhNutritionalPairingUpdateReq req);


    /**
    * 功能描述:
    *
    * @param entity
    * @return com.xiao.hao.resp.XhNutritionalPairingResp
    * @author xiaohao
    * @date 2025-03-01 18:30:25
    */
    XhNutritionalPairingResp entityToResp(XhNutritionalPairing entity);

    /**
    * 功能描述:
    *
    * @param list
    * @return java.util.List<com.xiao.hao.resp.XhNutritionalPairingResp>
    * @author xiaohao
    * @date 2025-03-01 18:30:25
    */
    List<XhNutritionalPairingResp> entityListToRespList(List<XhNutritionalPairing> list);
}



